﻿@model GsifWeb4.ViewModels.MatchStatPerson

<table id="MatchReportplayer">
    
    <tr >
        <td rowspan='1'>
            <div id='@(Model.ManOftheMatch ? "ManOfTheMatchPlayer" : "NotManOfTheMatchPlayer")'>
                <img src="@Model.ImagePathSmall" width='33' height='40' />
            </div>
        </td>
        <td>
            <a class='player' href="@Url.Action("ShowPlayer", "Player", new { ID = Model.PlayerID })">@Model.FName<br />@Model.EName</a>
            <br />
            @{                                                    
                if (Model.Goals > 0)
                {
                <img src="/Images/SiteImages/mal@(Model.Goals).png" width='20' height='12' title='Assist' />
                }
                if (Model.Assists > 0)
                {
                <img src="/Images/SiteImages/assist@(Model.Assists).png" width='20' height='12' title='Assist' />
                }
                if (Model.RedCard > 0)
                {
                <img src="/Images/SiteImages/Utvisning.gif" width='8' height='12' title='Utvisning' />
                }
                if (Model.YellowCards > 0)
                {
                <img src="/Images/SiteImages/Varning.gif" width='8' height='12' title='Varning' />
                } 
             }
        </td>
    </tr> 
</table>
